package com.study.controller;

import com.study.configuration.MyConf3;
import com.study.configuration.MyConf4;
import com.study.configuration.TestPrimaryAnnotation.PrimaryAnnotation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author tanglingyu
 * @Date: 2021/09/06/ 9:50
 * @Description
 */
@RestController
@RequestMapping("/test4")
public class TestController4 {

  @Autowired
  private MyConf3 myConf3;

  @Autowired
  private MyConf4 myConf4;

  @Autowired
  private PrimaryAnnotation primaryAnnotation;

  @Autowired
  @Qualifier("get2")
  private PrimaryAnnotation primaryAnnotation2;

  @RequestMapping("/test4")
  public String testProcy() {
    System.out.println(myConf3);
    System.out.println(myConf4);
    return "bean";
  }

}
